package org.dtrd.modules.pushmessage.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.pushmessage.entity.po.DtrdRlPushMessage;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiao
 * @since 2022-08-08
 */
@Getter
@Setter
@ApiModel(value = "列表信息", description = "")
public class PushMessageListInfo {

    @ApiModelProperty("数据ID")
    private Integer dataId;

    @ApiModelProperty("机构编码")
    private String orgCode;

    @ApiModelProperty("机构名称")
    private String orgName;

    @ApiModelProperty("推送内容")
    private String orgPushMessage;

    @ApiModelProperty("关联商品/服务包 id")
    private Integer orgProductId;

    @ApiModelProperty("关联商品/服务包 name")
    private String orgProductName;

    @ApiModelProperty("应用状态 0-未应用 1-已应用")
    private Boolean applyStatus;



    public PushMessageListInfo (DtrdRlPushMessage po) {
        dataId = po.getDataId();
        orgCode = po.getOrgCode();
        orgName = po.getOrgName();
        orgPushMessage = po.getOrgPushMessage();
        orgProductId = po.getOrgProductId();
        orgProductName = po.getOrgProductName();
        applyStatus = po.getApplyStatus();
    }
}
